package org.springblade.modules.repair.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.modules.repair.dto.ElevatorAttachmentDTO;
import org.springblade.modules.repair.entity.ElevatorAttachment;
import org.springblade.modules.repair.entity.ElevatorAttachmentHistory;
import org.springblade.modules.repair.entity.ElevatorFieldV;
import org.springblade.modules.repair.entity.RelationAlias;
import org.springblade.modules.repair.vo.elevator.ElevatorFloorVo;
import org.springblade.modules.repair.vo.part.PartWordUrlVo;
import org.springblade.modules.system.vo.SimpleUserVO;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class ElevatorDetailVO {

	/**
	 * id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;

	/**
	 * 电梯位置
	 */
	private String elevatorAddress;

	/**
	 * 品牌id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long brandId;

	/**
	 * 品牌名称
	 */
	private String brandName;

	/**
	 * 型号名称
	 */
//	private String typeName;

	/**
	 * 设备代码
	 */
	private String privateNum;

	/**
	 * 驱动方式
	 */
	private String driveModeName;

	/**
	 * 额定载重量
	 */
	private String supportingPower;

	/**
	 * 额定速度
	 */
	private String speed;

	/**
	 * 层
	 */
	private String floorHigh;

	/**
	 * 站
	 */
	private String stand;

	/**
	 * 门
	 */
	private String door;

	/**
	 * 单位内编号
	 */
	private String registerNumber;

	/**
	 * 登记证编号
	 */
	private String equipmentRegisterNumber;

	/**
	 * 制造日期
	 */
	private Date madeDate;

	/**
	 * 制造日期
	 */
	private Date startDate;

	private Boolean isFull;

	private Boolean privateNumIsFull;

	/**
	 * 电梯年审时间
	 */
	private String elevatorAudit;

	private String buildingName;

	private String buildingAddress;

	private String latitude;
	private String longitude;

	private String elevatorLatitude;
	private String elevatorLongitude;

	/**
	 * 提升高度
	 */
	private String hoistHeight;


	/**
	 * 合格证号
	 */
	private String certNo;

	/**
	 * 生产工号
	 */
	private String manufactureNo;

	/**
	 * 登记机关
	 */
	private String registrationAuthority;

	/**
	 * 检验机构
	 */
	private String certificationBody;

	/**
	 * 安全员名字
	 */
	private String securityGuardName;

	/**
	 * 出厂型号
	 */
	private String factoryNumber;

	@JsonSerialize(using = ToStringSerializer.class)
	private Long elevatorUseType;

	private Integer useType;

	private String deviceId;

	private Integer isStop;

	private Long buildingId;

	private List<SimpleUserVO> estateUserList;

	@JsonFormat(pattern = "yyyy/MM/dd")
	private Date nextPlanDate;

	@JsonFormat(pattern = "yyyy/MM/dd")
	private Date previousPlanDate;

	@ApiModelProperty(value = "项目别名")
	private List<RelationAlias> relationAlias;

	@ApiModelProperty("楼栋id")
	private Long floorElevatorId;

	@ApiModelProperty("")
	private ElevatorFieldV fieldV;

	//2024-07-25新增
	@ApiModelProperty("维保-服务电话")
	private String wbPhone;

	@ApiModelProperty("维保-服务电话贴纸")
	private List<PartWordUrlVo> wbPhoneImg;

	@ApiModelProperty("维保-更新时间")
	private Date wbPhoneImgDate;

	@ApiModelProperty("维保-标致附件url")
	private List<PartWordUrlVo> wbExtUrl;

	@ApiModelProperty("维保-标致附件url更新时间")
	private Date wbExtUrlDate;

	@ApiModelProperty("站信息")
	private List<ElevatorFloorVo> floorPlatforms;

	@ApiModelProperty("门信息")
	private List<ElevatorFloorVo> floorDoors;

	@ApiModelProperty("层信息")
	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<ElevatorFloorVo> floorTier;

	@ApiModelProperty("楼层编号逗号分割")
	private String floorNums;

	/**
	 * 楼层总数
	 */
	@ApiModelProperty(value = "楼层总数")
	private Integer floorAllNum;

	@ApiModelProperty("使用附件")
	List<ElevatorAttachmentHistory> certificateLists;

	/**
	 * 铭牌附件url列表
	 */
	private List<ElevatorAttachmentHistory> nameAttachmentList;


	@ApiModelProperty("电梯快速识别码")
	private String elevatorNum;


	@ApiModelProperty("识别代码贴纸")
	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<PartWordUrlVo> elevatorNumImg;

	@ApiModelProperty("识别代码贴纸更新时间")
	private Date elevatorNumImgDate;

	/**
	 * 制造商名称
	 */
	private String madeName;

	/**
	 * 品牌型号id
	 */
	private Long brandVId;

	/**
	 * 品牌型号id
	 */
	private String brandVName;

	/**
	 * 品牌型号系列id
	 */
	private Long brandVSkuId;

	/**
	 * 品牌型号系列id
	 */
	private String brandVSkuName;

	/**
	 * 出厂日期
	 */
	private Date factoryDate;


	@ApiModelProperty("类型位置完整度")
	private BigDecimal lwIntact;

	@ApiModelProperty("结构完整度")
	private BigDecimal jgIntact;

	@ApiModelProperty("维保完整度")
	private BigDecimal wbIntact;

	@ApiModelProperty("保险完整度")
	private BigDecimal bxIntact;

	@ApiModelProperty("设备技术完整度")
	private BigDecimal sbJsIntact;

	@ApiModelProperty("设备注册完整度")
	private BigDecimal sbZcIntact;

	@ApiModelProperty("出厂完整度")
	private BigDecimal ccIntact;

	@ApiModelProperty("使用完整度")
	private BigDecimal syIntact;

	@ApiModelProperty("安装完整度")
	private BigDecimal azIntact;

	@ApiModelProperty("梯无忧完整度")
	private BigDecimal twyIntact;

	@ApiModelProperty("保险公司名称")
	private  Long bxCompanyId;

	@ApiModelProperty("保险公司到期时间")
	private  Date bxCompanyEndDate;

	@ApiModelProperty("保险-标致url")
	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<PartWordUrlVo> bxExtUrl;

	@ApiModelProperty("保险-标致url")
	private Date bxExtUrlDate;

	private Date azCheckBeginDate;
}
